{include file="overall_header.tpl"}
<div>

<table class="tableunique" style="width:100%">
	<tr >
		<td class="unico transparent" style="text-align:left"><a href="#" onclick="$('#datos').slideToggle();return false" class="link">
		<img src="./styles/images/Adm/arrowright.png" width="16" height="10"> Оплата Антиматерии</a></td>
	</tr><tr>
		<td class="unico transparent">
			<div id="datos">

	<table border="0" cellspacing="1" cellpadding="1" width="80%">  	
					<tr align="center">
						<th width="15px">№</th>
						<th>ID игрока</th>
						<th>Ник</th>
						<th>Сумма</th>
						<th>Валюта</th>
						<th>Время игрока</th>
						<th>Время отправки</th>
						<th>Сума Антиматери</th>
						<th> </th>
						<th>Х</th>
					</tr>
					{foreach item=row from=$NotOplataList}
					<tr>
						<td>{$row.id}</td>
						<td>{$row.id_user}</td>
						<td>{$row.name_user}</td>
						<td>{$row.sum}</td>
						<td>{$row.valuta}</td>
						<td>{$row.time_user}</td>
						<td>{$row.time}</td>
						<td>{$row.k_oplate}</td>
						<td>{$row.oplata}</td>
						<td>{$row.del}</td>
					</tr>
					{/foreach}
			</table>
            <br />
      </div>
			</td></tr>
			
		<tr>
		<td class="unico transparent" style="text-align:left"><a href="#" onclick="$('#pla').slideToggle();return false" class="link">
		<img src="./styles/images/Adm/arrowright.png" width="16" height="10"> Выданная Антиматерию</a></td>
	</tr><tr>
		<td class="unico transparent">
			<div id="pla" style="display:none">
				<table border="0" cellspacing="1" cellpadding="1" width="80%">  	
					<tr align="center">
						<th width="15px">№</th>
						<th>ID игрока</th>
						<th>Ник</th>
						<th>Сумма</th>
						<th>Валюта</th>
						<th>Время игрока</th>
						<th>Время отправки</th>
						<th>Сума Антиматерии</th>
						<th> </th>
					</tr>
					{foreach item=row from=$EsOplataList}
					<tr>
						<td>{$row.id}</td>
						<td>{$row.id_user}</td>
						<td>{$row.name_user}</td>
						<td>{$row.sum}</td>
						<td>{$row.valuta}</td>
						<td>{$row.time_user}</td>
						<td>{$row.time}</td>
						<td>{$row.k_oplate}</td>
						<td>{$row.oplata}</td>
					</tr>
					{/foreach}
			</table>		
			<br>
			</div>
		</td>
	</tr><tr>
		<td class="unico transparent" style="text-align:left"><a href="#" onclick="$('#recursos').slideToggle();return false" class="link">
		<img src="./styles/images/Adm/arrowright.png" width="16" height="10"> Смена курса волют</a></td>
	</tr><tr>
		<td class="unico transparent">
        	<div id="recursos" style="display:none">   
            <form action="?page=valuta" method="post">
    		<input type="hidden" name="action" value="val">
			<table align="center" width="300px">
                <tr><th colspan="3">Смена курса валют</th></tr>
                <tr><td height="22px" width="70px">WMR</td><td width="90px">{$wmr|number}</td><td width="90px"><input name="wmr" id="wmr" type="text" value="{$wmr}" size="10"></td></tr>
                <tr><td height="22px" width="70px">WMZ</td><td width="90px">{$wmz|number}</td><td width="90px"><input name="wmz" id="wmz" type="text" value="{$wmz}" size="10"></td></tr>
                <tr><td height="22px" width="70px">WMU</td><td width="90px">{$wmu|number}</td><td width="90px"><input name="wmu" id="wmu" type="text" value="{$wmu}" size="10"></td></tr>
                <tr><td height="22px" width="70px">WME</td><td width="90px">{$wme|number}</td><td width="90px"><input name="wme" id="wme" type="text" value="{$wme}" size="10"></td></tr>
                <tr><td height="22px" width="70px">WMB</td><td width="90px">{$wmb|number}</td><td width="90px"><input name="wmb" id="wmb" type="text" value="{$wmb}" size="10"></td></tr>
                <tr><td height="22px" width="70px">EP</td><td width="90px">{$ep|number}</td><td width="90px"><input name="ep" id="ep" type="text" value="{$ep}" size="10"></td></tr>
                <tr><td height="22px" width="70px">YM</td><td width="90px">{$ym|number}</td><td width="90px"><input name="ym" id="ym" type="text" value="{$ym}" size="10"></td></tr>
                <tr><td height="22px" width="70px">Бонус акции</td><td width="90px">{$x_donation|number} %</td><td width="90px"><input name="x_donation" id="x_donation" type="text" value="{$x_donation}" size="10"></td></tr>
                <tr><td height="22px" width="70px">X - Бонуса</td><td width="90px">{$x_bonus|number}</td><td width="90px"><input name="x_bonus" id="x_bonus" type="text" value="{$x_bonus}" size="10"></td></tr>
                <tr><th colspan="3"> <input name="ress" value="ok" type="submit" style="cursor:pointer;"></th></tr>
			</table>
			</form>
   			<br >
			</div>	
		</td>
	</tr><tr>
		<td class="unico transparent" style="text-align:left"><a href="#" onclick="$('#edificios').slideToggle();return false" class="link">
		<img src="./styles/images/Adm/arrowright.png" width="16" height="10"> Всем добавить Антиматерию</a></td>
	</tr><tr>
		<td class="unico transparent">
			<div id="edificios" style="display:none">
            <form action="?page=valuta&amp;mode=all" method="post">
			<table>
                <tr>
                    <td>				
                        <input type="text" name="atm" value="0" onFocus="if(this.value=='0')this.value='';" onblur="if(this.value=='')this.value='0';" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="submit" name="all" value="Отправить">
                    </td>
                </tr>
			</table>
			</form>
		
			<br >
			</div>
		</td>
	</tr><tr>
		<td class="unico transparent" style="text-align:left"><a href="#" onclick="$('#naves').slideToggle();return false" class="link">
		<img src="./styles/images/Adm/arrowright.png" width="16" height="10"> Добавить Антиматери</a></td>
	</tr><tr>
		<td class="unico transparent">
			<div id="naves" style="display:none">
			
          	<form action="?page=valuta&amp;mode=don" method="post">
			<table>
			<tr><td>
			<input type="text" name="id" value="id" onFocus="if(this.value=='id')this.value='';" onblur="if(this.value=='')this.value='id';" />
        	<input type="text" name="atm" value="0" onFocus="if(this.value=='0')this.value='';" onblur="if(this.value=='')this.value='0';" />
			</td></tr>
			<tr><td>
			<input type="submit" name="don" value="Отправить">
			</td></tr>
			</table>
			</form>
			
			<br />
			</div>
		</td>
	</tr><tr>
		<td class="unico transparent" style="text-align:left"><a href="#" onclick="$('#defensa').slideToggle();return false" class="link">
		<img src="./styles/images/Adm/arrowright.png" width="16" height="10"> Добавить премиум времени</a></td>
	</tr><tr>
		<td class="unico transparent">
			<div id="defensa" style="display:none">
			<form action="?page=valuta&amp;mode=prem" method="post">
			<table>
			<tr><td>
			<input type="text" name="id" value="id" onFocus="if(this.value=='id')this.value='';" onblur="if(this.value=='')this.value='id';" />
        	<input type="text" name="prem_time" value="Дней" onFocus="if(this.value=='Дней')this.value='';" onblur="if(this.value=='')this.value='Дней';" /> 
			</td></tr>
			<tr><td>
			<input type="submit" name="prem" value="Отправить">
			</td></tr>
			</table>
			</form>
			<br >
			</div>
		</td>
	</tr><tr>
		<td class="unico transparent" style="text-align:left"><a href="#" onclick="$('#inves').slideToggle();return false" class="link">
		<img src="./styles/images/Adm/arrowright.png" width="16" height="10">Общая сумма</a></td>
	</tr><tr>
		<td class="unico transparent">
			<div id="inves" style="display:none">
			<table>
            	<tr>
                	<td>WMR</td><td style="color:#FC0; text-align:right; width:150px;">{$wmr_s|number}</td><td style="text-align:left; width:150px;">~ {($wmr_s*$wmr)|number}</td>
                </tr>
                <tr>
                	<td>WMZ</td><td style="color:#FC0; text-align:right; width:150px;">{$wmz_s|number}</td><td style="text-align:left; width:150px;">~ {($wmz_s*$wmz)|number}</td>
                </tr>
                <tr>
                	<td>WMU</td><td style="color:#FC0; text-align:right; width:150px;">{$wmu_s|number}</td><td style="text-align:left; width:150px;">~ {($wmu_s*$wmu)|number}</td>
                </tr>
                <tr>
                	<td>WME</td><td style="color:#FC0; text-align:right; width:150px;">{$wme_s|number}</td><td style="text-align:left; width:150px;">~ {($wme_s*$wme)|number}</td>
                </tr>
                <tr>
                	<td>WMB</td><td style="color:#FC0; text-align:right; width:150px;">{$wmb_s|number}</td><td style="text-align:left; width:150px;">~ {($wmb_s*$wmb)|number}</td>
                </tr>
                <tr>
                	<td>EsP</td><td style="color:#FC0; text-align:right; width:150px;">{$esp_s|number}</td><td style="text-align:left; width:150px;">~ {($esp_s*$ep)|number}</td>
                </tr>
                <tr>
                	<td>YaM</td><td style="color:#FC0; text-align:right; width:150px;">{$yam_s|number}</td><td style="text-align:left; width:150px;">~ {($yam_s*$ym)|number}</td>
                </tr>
                <tr>
                	<td colspan="2" style="color:#F00; text-align:right; width:150px;">Итого:</td>
                    <td style="text-align:left; width:150px;">~ {($yam_s*$ym + $esp_s*$ep + $wmb_s*$wmb + $wme_s*$wme + $wmu_s*$wmu + $wmz_s*$wmz + $wmr_s*$wmr)|number}</td>
                </tr>
            </table>
			<br >
			</div>
		</td>
	</tr><tr>
		<td class="unico transparent" style="text-align:left">
			<a href="#" onclick="$('#destr').slideToggle();return false" class="link">
			<img src="./styles/images/Adm/arrowright.png" width="16" height="10">пусто</a>
		</td>
	</tr><tr>
		<td class="unico transparent">
			<div id="destr" style="display:none">

			<br>
			</div>
		</td>
	</tr>
</table>

</div>
{include file="overall_footer.tpl"}